package com.ice.work.moment.user.service.role;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.honeybee.cloud.framework.common.page.Page;
import com.ice.work.moment.facade.user.dto.RoleDTO;
import com.ice.work.moment.facade.user.model.Role;
import com.ice.work.moment.facade.user.param.PageRoleParam;

import java.util.List;

/**
 * @Description IRoleService
 * @Author DELL
 * @Create 2019-01-10
 * @Since 1.0.0
 */
public interface IRoleService {

    /**
     * 分页查询
     *
     * @param page
     * @param param
     * @return
     */
    Page<RoleDTO> page(IPage<Role> page, PageRoleParam param);


    /**
     * 通过类型查询
     *
     * @param type
     * @return
     */
    List<RoleDTO> findByType(Integer type);
}

